package com.leemz.spring.basicuse;

import com.leemz.spring.factory.Person;
import org.springframework.beans.factory.InitializingBean;

/**
 * bean初始化
 * @author leemz
 */
//public class Product implements InitializingBean {
public class Product {
    public Product() {
        System.out.println("create person");
    }

    /**
     * 初始化方法
     * @throws Exception
     */
    /*@Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("product.afterPropertiesSet");
    }*/

    public void init() {
        System.out.println("自定义初始化方法");
    }
}
